package com.doctor.constants;

/**
 * Created by chemin on 2016/12/1.
 */
public class NetConfig {

    //-------------------------全局使用的一些配置-----------------------------------
    //baseURL

    public static String BASE_URL;   //正式服务器
//    public static String BASE_URL = "https://life-test.ubantv.com/";    //测试服务器

    static {
        if (Constants.FORMAL) {
            BASE_URL = "https://life.ubantv.com/";
        } else {
            BASE_URL = "https://life-test.ubantv.com/";
        }
    }

    //+mobile
    public final static String MOBILE = "mobile=";
    //+type验证码类型 register/login
    public final static String TYPE = "&type=";
    public final static String TOKEN = "token=";
    public final static String TOKEN_ = "?token=";
    public final static String AND_TOKEN = "&token=";
    public final static String NONCE = "&nonce=";//JGOMX9gLJWC1sDipHe0gJ1UslYygxUbk
    //timestamp 当前UTC时间戳，从1970年1月1日0点0 分0 秒开始到现在的秒数(String)
    public final static String TIME_STAMP = "&timestamp=";
    //sign
    public final static String SIGN = "&sign=";
    //+appType  应用类型，最长32字符, 比如 web,android,iphone,ipad
    public final static String APP_TYPE = "&appType=android";
    public final static String SHARE_FORM = "&shareForm=android";
    //+appVersion 应用版本号，默认值为1.0
    public final static String APP_VERSION = "&appVersion=";
    //+deviceId 设备标识，唯一编号，最长64字符
    public final static String DEVICE_ID = "&deviceId=";
    //+deviceModel 设备型号，最长32字符
    public final static String DEVICE_MODEL = "&deviceModel=";
    //+&deviceInfo 设备信息，最长255字符
    public final static String DEVICE_INFO = "&deviceInfo=";
    //+&channel 分发渠道，App打包时固化，最长32字符
    public final static String CHANNEL = "&channel=";
    //+&eventName 市场活动代码，最长32字符，比如 love520
    public final static String EVENT_NAME = "&eventName=";
    //+&partner 第三方合作伙伴代码，最长32字符，比如 lenovo
    public final static String PARTNER = "&partner=";
    public final static String TARGET_LIFE = "&target=life";
    public final static String LOADING_ERROR = "加载失败!";
    public final static String NO_DATA = "数据为空!";
    public final static String NETWORK_BROKE = "网络连接失败,请检查网络后再试!";
    public final static String LEVEL_SHARE_NO_WENHAO = "video/channel/share";
    public final static String SHARE_WEB_BASE = "https://www.ubantv.com/life/appShare.html?";//直播分享的base
    //===================检测版本、更新===========================
    public final static String APP_UPGRADE = "app/upgrade?";
    public final static String APP_CHECK = "app/version?";

    //查询系统消息需要拼接的
    public final static String USER_MESSAGE = "user/messageList/";

    //=====================================================================

    //============================以下是H5界面的Url=======================================
    public final static String SERVICE_WEB = "http://www.ubantv.com/life/useragreement.html";//服务协议H5页面


    public final static String WEB_BEHAVIOR_BASE = "http://www.ubantv.com/m/behavior.html?app=app";//统计行为记录的base
    //========================================================================

    /**
     * 品牌认证
     */
    public final static String USER_AGENT_CERTIFY = "user/agent/certify";

    //获取用户关注和粉丝列表需要拼接的
    public final static String USER_FOLLOW = "user/follow/";

    //上传用户头像
    public final static String UPLOAD_USERICON = "user/avatar/upload?";
    //修改用户资料
    public final static String UPDATA_USER_INFO = "user/profile?";

    //搜索用户昵称或ID的部分网址
    public final static String SEARCH_URL = "user/search/";
    public final static String QUERY = "q=";

    /**
     * 发送短信
     */
    public final static String INTER_SMS = "sms/send";

    /**
     * 绑定push
     */
    public final static String USER_BIND_PUSH = "user/push/bind";

    //--------------------观众观看直播----------------------------
    public final static String LIVE_WATCH_START = "video/watch/start";
    public final static String LIVE_LIKE = "video/like/";

    //查询主播守护版需要拼接的
    public final static String USER_HONOR = "user/honor/";
    public final static String ROLL = "/roll/";
    public final static String LEVEL_URL = "level/icon_levlel";
    public final static String LEVEL_END = ".png";
    public final static String LEVEL_SHARE = "video/channel/share?";
    public final static String LEVEL_CHANNEL_SHARE = "video/channel/share/";

    //获取用户的直播频道列表
    public final static String LIVE_LIST = "user/lives/";
    public final static String NOTICE_LIST = "user/follow/";
    public final static String SUBMIT_REPORT = "user/inform?";
    public final static String LIVE_PREPARE = "video/channel/prepare?";

    //---------------认证界面需要拼接的-----------------------
    public final static String CERTIFY_URL = "user/certify?";
    //actualName 真实姓名，最长20字符
    public final static String ACTUAL_NAME = "&actualName=";
    public final static String NICKNAME = "nickName=";

    //&idNumber 身份证号，最长18字符
    public final static String ID_NUMBER = "&idNumber=";


    //--------------以下是网络请求可能需要拼接的参数----------
    public final static String INDEX = "index/";
    public final static String PARAM_TOKEN = "token";
    public final static String PARAM_FORM = "form";
    public final static String PARAM_ATTACHMENT = "attachment";
    public final static String PARAM_APP_TYPE = "appType";
    public final static String PARAM_APP_VERSION = "appVersion";
    public final static String PARAM_CHANNEL = "channel";
    public final static String PARAM_CLIENT_ID = "clientId";
    public final static String PARAM_DEVICE_ID = "deviceId";
    public final static String PARAM_DEVICE_INFO = "deviceInfo";
    public final static String PARAM_DEVICE_MODEL = "deviceModel";
    public final static String PARAM_EVENT_NAME = "eventName";
    public final static String PARAM_MOBLE = "mobile";
    public final static String VERIFICODE = "verifyCode";
    public final static String PARAM_TARGET = "target";
    public final static String LIVE_UUID = "liveUuid=";
    public final static String VID = "&vid=";
    public final static String HOME_CAROUSEL_SHARE = "home/carousel/share?";
    public final static String UUID = "uuid=";
    public final static String UUID_ = "&uuid=";
    public final static String PAYMENT_METHOD = "&paymentMethod=";
    public final static String TRADE_TYPE = "&tradeType=APP";
    public final static String PLATEFORM = "&platform=";
    public final static String SUGGESTION = "user/feedback?";
    public final static String PARAM_NICKNAME = "?nickName=";
    public final static String FILES = "&files=";
    public final static String POST_ADDRESS = "&postAddress=";
    public final static String CONTACT_NAME = "&contactName=";
    public final static String CONTACT_PHONE = "&contactPhone=";
    public final static String GRAB_UUID = "&grabUuid=";

    //===========================================================

}
